package com.hehe.httpurlconnectiontest2;

import android.util.Log;

/**
 * Created by lenove on 2017/11/10.
 *
 * Yeelink传感器类
 */

public class YeelinkSensor {

    private String sensor_id;//传感器ID
    private String sensor_title;//传感器名称
    private String sensor_about;//简介
    private String unit_name;//单位名
    private String unit_symbol;//单位符号
    //private String timestamp ;//最新更新时间"timestamp":"2012-03-15T16:13:14",
    //private String value;//传感器的数据
    private YeelinkDataPoint dataPoint;//数据点

    //构造方法
    YeelinkSensor(){}

    YeelinkSensor(String sensor_id,String sensor_title,String sensor_about,
                  String unit_name,String unit_symbol,YeelinkDataPoint dataPoint) {
        this.sensor_id = sensor_id;
        this.sensor_title = sensor_title;
        this.sensor_about = sensor_about;
        this.unit_name = unit_name;
        this.unit_symbol = unit_symbol;
        this.dataPoint = dataPoint;
    }

    public void setSensor_about(String sensor_about) {
        this.sensor_about = sensor_about;
    }

    public void setSensor_id(String sensor_id) {
        this.sensor_id = sensor_id;
    }

    public void setSensor_title(String sensor_title) {
        this.sensor_title = sensor_title;
    }

    public void setUnit_name(String unit_name) {
        this.unit_name = unit_name;
    }

    public void setUnit_symbol(String unit_symbol) {
        this.unit_symbol = unit_symbol;
    }

    public void setDataPoint(YeelinkDataPoint dataPoint) {
        this.dataPoint = dataPoint;
    }

    //    public void setValue(String value) {
//        this.value = value;
//    }
//
//    public void setTimestamp(String timestamp) {
//        this.timestamp = timestamp;
//    }

    public String getSensor_title() {
        return sensor_title;
    }

    public String getSensor_about() {
        return sensor_about;
    }

    public String getSensor_id() {
        return sensor_id;
    }

    public String getUnit_name() {
        return unit_name;
    }

    public String getUnit_symbol() {
        return unit_symbol;
    }

    public YeelinkDataPoint getDataPoint() {
        return dataPoint;
    }

    //    public String getValue() {
//        return value;
//    }
//
//    public String getTimestamp() {
//        return timestamp;
//    }

}
